package search.linearsearch;

/**
 * @author XY
 * @version 1.0
 * @date 2021/6/21 17:07
 * @Description
 */
public class Student {

    private String name;

    public Student(String name){
        this.name=name;
    }

    @Override
    public boolean equals(Object obj) {
        if(this == obj){
            return true;
        }
        if(obj == null){
            return false;
        }
        if(!(obj instanceof Student)){
            return false;
        }
        Student another=(Student)obj;

        return this.name.equals(another.name);
    }
}
